package micro.controller.userMeun;

import micro.pojo.employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@Controller
@RequestMapping("/shgos")
public class userMenu05 {
    @Autowired
    private micro.service.userMeun.userspace userspace;
    @RequestMapping("/weq")
    public String ibexes(HttpSession session, HttpServletRequest request, employee employee){
        System.out.println("进入添加");
        int i= userspace.insets(employee);
        if (i>0) {
            System.out.println("增加成功");
            return "redirect:user/order";
        }else {
            System.out.println("增加失败");
            return "userMeun/userList";
        }
    }
}
